<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/28
  Time: 19:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    pageContext.setAttribute("a","10");
    request.setAttribute("b","20");
    session.setAttribute("c","30");

    session.setAttribute("name","张三");

    application.setAttribute("d","40");
    %>
<p>${sessionScope.aaaa}</p>
<p>name=${sessionScope.name}</p>
<p>a=${pageScope.a}</p>
<p>a=${requestScope.b}</p>
<p>a=${sessionScope.c}</p>
<p>a=${applicationScope.d}</p>

</body>
</html>
